package ch06;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestCh06Entity {

    @Test
    public void testIOC_cons(){
        String url ="application_ch06.xml";
        ApplicationContext context = new ClassPathXmlApplicationContext(url);
        TestEntity testEntity = context.getBean("testEntity",TestEntity.class);
        System.out.println(testEntity);

    }
}
